<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cadastrar Professor</title>
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
	{% if error %}
		<font color='red'> {{error}} </font>
	{% endif %}
	<form action="/accounts/efetuar_cadastro_professor/" method="post">
		<h2>Dados pessoais</h2>
		<div class="form-group">
			<label for="email">Email:</label>
			<input type="email" name="email" id="email" required/><br />
		</div>
		<div class="form-group">
			<label for="username">Usuário:</label>
			<input type="text" name="username" id="username" required/><br />
		</div>
		<div class="form-group">
			<label for="password">Senha:</label>
			<input type="password" name="password" id="password" required/><br />
		</div>
		<div class="form-group">
			<label for="password2">Repetir senha:</label>
			<input type="password" name="password2" id="password2" required/><br />
		</div>
		<div class="form-group">
			<label for="nome">Nome:</label>
			<input type="text" name="nome" id="nome" required/><br />
		</div>
		<div class="form-group">
			<label for="cpf">CPF:</label>
			<input type="text" name="cpf" id="cpf" required/><br />
		</div>
		<div class="form-group">
			<label for="telefone">Telefone:</label>
			<input type="text" name="telefone" id="telefone" required/><br />
		</div>
		<h2>Endereço</h2>
		<div class="form-group">
			<label for="rua">Rua:</label>
			<input type="text" name="rua" value='{{rua}}' id="rua" required/><br />
		</div>
		<div class="form-group">
			<label for="num">Numero:</label>
			<input type="text" name="num" id="num" required/><br />
		</div>
		<div class="form-group">
			<label for="bairro">Bairro:</label>
			<input type="text" name="bairro" value='{{bairro}}' id="bairro" required/><br />
		</div>
		<div class="form-group">
			<label for="cidade">Cidade:</label>
			<input type="text" name="cidade" value='{{cidade}}' id="cidade" required/><br />
		</div>
		<div class="form-group">
			<label for="cep">CEP:</label>
			<input type="text" name="cep" value='{{cep}}' id="cep" required/><br />
		</div>
		<div class="form-group">
			<label for="estado">UF:</label>
			<input type="text" name="estado" value='{{uf}}' id="estado" required/><br />
		</div>
		<button type="submit" class="btn btn-success">Cadastrar</button>

	</form>
	<a href="http://127.0.0.1:8000/elearning/"> Voltar</a>
</body>
</html>